#pragma once

inline bool Match_STR(LPCTSTR src, LPCTSTR mch, bool bCase)
{
	for (int i=0; mch[i]; ++i)
	{
		TCHAR ch1 = src[i];
		TCHAR ch2 = mch[i];
		if (!bCase)
		{
			if (ch1>='A' && ch1<='Z') ch1 = ch1-'A'+'a';
			if (ch2>='A' && ch2<='Z') ch2 = ch2-'A'+'a';
		}
		if (ch1 != ch2) return false;
	}
	return true;
}
